package com.jasperframework.boot.common.modules.base;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * <p> 列表分页 </p>
 *
 * @author daizhao
 * @site https://miliqkdoc.motopa.cn/
 * @date 2019/10/25 13:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@SuperBuilder
public class BasePage extends BaseOp {
    /**
     * 查询页
     */
    @Builder.Default
    private long page = 1;
    /**
     * 每页条数
     */
    @Builder.Default
    private long size = 10;
    /**
     * 排序条件
     */
    @Builder.Default
    private String orderBy = "create_time desc";
}
